package com.icloud.article.boot.dto;


import com.icloud.common.core.constant.ValidateConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@ApiModel("打赏参数")
@Data
public class RewardDto {
    @ApiModelProperty("打赏人id")
    private Long customerId;

    @ApiModelProperty(value = "帖子id", required = true)
    @NotNull(message = ValidateConstant.NOT_NULL)
    private Long articleId;

    @ApiModelProperty(value = "打赏金额", required = true)
    @NotNull(message = ValidateConstant.NOT_NULL)
    private BigDecimal amount;

    @ApiModelProperty(value = "打赏时间")
    private Long rewardTime;

    @ApiModelProperty("谷歌验证码")
    private String verification;
}
